L1-051 打折

题目 L1-051 打折

image-5c0f5a8e

思路分析

代码实现

#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
using ll = long long;
using ull = unsigned long long;
using PII = pair<int,int>;
using Pll = pair<ll,ll>;
int dx[4]={-1,0,1,0},dy[4]={0,1,0,-1};
const int inf = 0x3f3f3f3f;

int main(){
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);

	double price; double z;
	cin>>price>>z;
	z/=10;
	printf("%.2f",price*z);
	return 0;
}

同类题型

视频讲解


⬅️ L1-050 倒数第N个字符串 🏠 00-天梯赛 ➡️ L1-052 2018我们要赢